import { createApp } from "vue";
import App from "./App.vue";
import routes from "./router";
import store from "./store";
<% if (mainRoute === 'hash') { -%>
import { createRouter, createWebHashHistory } from "vue-router";
<% } -%>
<% if (mainRoute === 'history') { -%>
import { createRouter, createWebHistory } from "vue-router";
<% } -%>

<% if (mainRoute === 'hash') { -%>
const router = createRouter({
  history:createWebHashHistory(process.env.BASE_URL),
  routes
})
<% } -%>

<% if (mainRoute === 'history') { -%>
const router = createRouter({
  history:createWebHistory(process.env.BASE_URL),
  routes
})
<% } -%>



createApp(App).use(store).use(router).mount("#app");
